#include "ota_runner.h"
#include "ota/ota_http.h"
#include "thirdparty/log.h"
#include <unistd.h>

static current_version = CURRENT_VERSION;
int ota_runner_checkNewVersion(Version *version)
{
    
}

int ota_runner_run()
{
    Version version;
    while (1) {
        if(ota_getVsersion(&version) < 0)
        {
            log_error("Failed to get version");
            sleep(86400);
            continue;
        }
    }
}